﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace QMERP.Infrastructure.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class init20 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_StockDetail_Id",
                table: "StockDetail",
                column: "Id");

            migrationBuilder.CreateIndex(
                name: "IX_Stock_CreatedOn",
                table: "Stock",
                column: "CreatedOn",
                descending: new bool[0]);

            migrationBuilder.CreateIndex(
                name: "IX_Stock_Id",
                table: "Stock",
                column: "Id");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_StockDetail_Id",
                table: "StockDetail");

            migrationBuilder.DropIndex(
                name: "IX_Stock_CreatedOn",
                table: "Stock");

            migrationBuilder.DropIndex(
                name: "IX_Stock_Id",
                table: "Stock");
        }
    }
}
